package com.feicheng.iou.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author tianchunlei
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Payment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 支付ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 支付类型ID
     */
    @TableField(value = "p_o_id")
    private Integer poid;

    /**
     * 总金额
     */
    private BigDecimal totalAmount;

    /**
     * 状态
     */
    private String status;

    /**
     * 申请日期
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDate requestDate;

    /**
     * 通过日期
     */
    private LocalDate allowDate;

    /**
     * 生效日期
     */
    private LocalDate runDate;

    /**
     * 合同ID
     */
    private Integer contractId;

    private String number;

    private Integer cu;

    private LocalDateTime ct;

    private Integer uu;

    private LocalDateTime ut;

    @TableLogic
    private Integer isDeleted;

    private BigDecimal discount;

}
